package org.fastsyncer.common.constant;

public class MappingConstant {
	
	/**
	 * Mapping数据迁移模式
	 */
	public static final String SYNC_ALL = "all";
	
	/**
	 * Mapping数据同步模式
	 */
	public static final String SYNC_INCREMENT = "increment";
	
	/**
	 * Mapping数据同步：策略增量
	 */
	public static final String POLICY_INCREMENT = "increment";
	
	/**
	 * Mapping数据同步：策略增量_MYSQL
	 */
	public static final String POLICY_INCREMENT_MYSQL = "mysql";
	
	/**
	 * Mapping数据同步：策略增量_ORACLE
	 */
	public static final String POLICY_INCREMENT_ORACLE = "oracle";
	
	/**
	 * Mapping数据同步：新增
	 */
	public static final String SYNC_INCREMENT_TYPE_INSERT = "INSERT";
	
	/**
	 * Mapping数据同步：修改
	 */
	public static final String SYNC_INCREMENT_TYPE_UPDATE = "UPDATE";
	
	/**
	 * Mapping数据同步：删除
	 */
	public static final String SYNC_INCREMENT_TYPE_DELETE = "DELETE";
	
	/**
	 * Mapping存储类型_同步配置MAPPING文件后缀
	 */
	public static final String STORE_MAPPING_SUFFIX = ".config";
	
	/**
	 * Mapping存储类型_同步结果HANDLE文件后缀
	 */
	public static final String STORE_HANDLE_SUFFIX = ".txt";
	
	/**
	 * 数据转换类型_追加在前面,例如“张三”追加123 => 123张三
	 */
	public static final String CONVERT_TYPE_PREPEND = "prepend";
	
	/**
	 * 数据转换类型_追加在后面,例如“张三”追加123 => 张三123
	 */
	public static final String CONVERT_TYPE_APPEND = "append";
	
	/**
	 * 数据转换类型_替换,例如“张?三”替换?为空字符串 => 张三
	 */
	public static final String CONVERT_TYPE_REPLACE = "replace";
	
}
